﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MastePage/SubEmptyMaster.Master" AutoEventWireup="true" CodeBehind="BOMList.aspx.cs" Inherits="BySoft.Web.Site.BOM.BOMList" %>

<%@ Register Assembly="OneSoft.Web" Namespace="OneSoft.Web.UI.WebControls" TagPrefix="asp" %>
<%@ Register Assembly="BySoft.Web.Controls" Namespace="BySoft.Web.Controls" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadPlace" runat="server">
     <script language="javascript" type="text/javascript">
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="EmptyMasteCPH" runat="server">
     <h1 class="tit">BOM管理 >> BOM表</h1>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
             <%--查询条件--%>
            <div class="searchTable">
                <table cellpadding="0" cellspacing="0">
                    <tr>
                        <th class="left2">号码：
                        </th>
                        <td class="right2">
                            <asp:TextBox CssClass="fullWidth" ID="txtBOMID" runat="server"></asp:TextBox>
                        </td>
                        <th class="left2">日期：
                        </th>
                        <td class="right2">
                            <input class="Wdate" id="cpFrom" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})" readonly="true" runat="server" type="text"></input>
                            -
                            <input class="Wdate" id="cpEnd" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})" readonly="true" runat="server" type="text"></input>
                        </td>
                    </tr>
                    <tr>
                        <th class="left2">制单号码：</th>
                        <td class="right2"><asp:TextBox CssClass="fullWidth" ID="txtWorkOrderNo" runat="server"></asp:TextBox></td>
                        <th class="left2">产品名称：</th>
                        <td class="right2"><asp:TextBox CssClass="fullWidth" ID="txtProductName" runat="server"></asp:TextBox></td>
                    </tr>
                </table>
                <div class="btnStylef">
                    <label class="btnStyleb png_bg">
                        <asp:Button Text="查询" runat="server" ID="btnQuery" OnClick="btnQuery_Click" />
                    </label>
                    <label class="btnStylec png_bg">
                        <input type="button" runat="server" id="btnAdd" value="新增" onclick="window.location = 'BOMAdd.aspx'"
                            validationgroup="gSubmit" /></label>
                </div>
            </div>
            <%--列表--%>
            <div class="tableStyle">
                <asp:SGridView runat="server" ID="grdResult" Width="100%" ShowActionToolBar="false"
                    AutoGenerateColumns="false" AllowCascade="false" OnRowCommand="grdResult_RowCommand" OnRowDataBound="grdResult_RowDataBound">
                    <Columns>
                        <asp:TemplateField>
                            <HeaderTemplate>
                                表单号码
                            </HeaderTemplate>
                            <ItemTemplate>
                                <asp:Label ID="lblBOMID" runat="server" Text='<%#Eval("BOMID") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <HeaderTemplate>
                                日期
                            </HeaderTemplate>
                            <ItemTemplate>
                                <asp:Label ID="lblBillDate" runat="server" Text='<%#Eval("BillDates") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <HeaderTemplate>
                                制单号码
                            </HeaderTemplate>
                            <ItemTemplate>
                                <asp:Label ID="lblWorkOrderNo" runat="server" Text='<%#Eval("WorkOrderNo") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <HeaderTemplate>
                                产品编号
                            </HeaderTemplate>
                            <ItemTemplate>
                                <asp:Label ID="lblProductID" runat="server" Text='<%#Eval("ProductID") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <HeaderTemplate>
                                产品名称
                            </HeaderTemplate>
                            <ItemTemplate>
                                <asp:Label ID="lblProductName" runat="server" Text='<%#Eval("ProductName") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <HeaderTemplate>
                                单位
                            </HeaderTemplate>
                            <ItemTemplate>
                                <asp:Label ID="lblUnit" runat="server" Text='<%#Eval("Unit") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <HeaderTemplate>
                                备注
                            </HeaderTemplate>
                            <ItemTemplate>
                                <asp:Label ID="lblRemark" runat="server" Text='<%#Eval("Remark") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <HeaderTemplate>
                                原料编号
                            </HeaderTemplate>
                            <ItemTemplate>
                                <asp:Label ID="lblMaterialID" runat="server" Text='<%#Eval("MaterialID") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <HeaderTemplate>
                                原料名称
                            </HeaderTemplate>
                            <ItemTemplate>
                                <asp:Label ID="lblMaterialName" runat="server" Text='<%#Eval("MaterialName") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <HeaderTemplate>
                                变更数量
                            </HeaderTemplate>
                            <ItemTemplate>
                                <asp:Label ID="lblChangeNum" runat="server" Text='<%#Eval("ChangeNum") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <HeaderTemplate>
                                长
                            </HeaderTemplate>
                            <ItemTemplate>
                                <asp:Label ID="lblLong" runat="server" Text='<%#Eval("Long") %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <HeaderTemplate>
                                查看
                            </HeaderTemplate>
                            <HeaderStyle Width="35px" />
                            <ItemTemplate>
                                <asp:ImageButton CommandName="viewdata" CommandArgument='<%#Eval("BOMID") %>'
                                    ImageUrl="../App_Themes/Common_CSS/images/GridDetail.gif" runat="server" ID="ibtnView" />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <HeaderStyle Width="35px" />
                            <HeaderTemplate>
                                编辑
                            </HeaderTemplate>
                            <ItemTemplate>
                                <asp:ImageButton CommandName="edi" CommandArgument='<%#Eval("BOMID") %>' ImageUrl="../App_Themes/Common_CSS/images/GridEdit.gif"
                                    runat="server" ID="ibtnEdi" />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <HeaderStyle Width="35px" />
                            <HeaderTemplate>
                                删除
                            </HeaderTemplate>
                            <ItemTemplate>
                                <asp:ImageButton ImageUrl="../App_Themes/Common_CSS/images/delete_small.gif" runat="server"
                                    ID="ibtnDel" />
                                <asp:Button ID="btnDel" runat="server" CssClass="Hidden" CommandArgument='<%#Eval("BOMID") %>'
                                    CommandName="del" />
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                </asp:SGridView>
                <div style="padding-top: 5px" align="right">
                    <cc1:PagingControl ID="pcData" runat="server" OnPageIndexClick="pcData_PageIndexClick" />
                </div>
            </div>
          </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>

